import React from "react";
import LoginStore from "./login.Store";
import UserStore from "./user.Store";
import ArticleStore from "./article.Store"

class RootStore {
    constructor() {
        this.LoginStore = new LoginStore()
        this.UserStore = new UserStore()
        this.ArticleStore=new ArticleStore()
    }
}

const rootStore = new RootStore()

// const context=React.createContext(RootStore)

const useStore = () => React.useContext(React.createContext(rootStore))

export { useStore }